var InventoryValidationRules = ValidationRules.extend({

    getRules: function()
    {
        return {
            name:
            {
                required: true
            },
            lifetime_in_days:
            {
                required: true,
                number: true,
                min: 1
            },
            left_in_stock:
            {
                required: true,
                number: true,
                min: 1
            },
            country_of_production:
            {
                required: true
            },
            cost_per_day:
            {
                required: true,
                number: true,
                min: 1
            }
        };
    },

    getMessages: function()
    {
        return {
            name:
            {
                required: this.VALIDATION_MESSAGES.required
            },
            lifetime_in_days:
            {
                required: this.VALIDATION_MESSAGES.required,
                number: this.VALIDATION_MESSAGES.number,
                min: this.VALIDATION_MESSAGES.min
            },
            left_in_stock:
            {
                required: this.VALIDATION_MESSAGES.required,
                number: this.VALIDATION_MESSAGES.number,
                min: this.VALIDATION_MESSAGES.min
            },
            country_of_production:
            {
                required: this.VALIDATION_MESSAGES.required
            },
            cost_per_day:
            {
                required: this.VALIDATION_MESSAGES.required,
                number: this.VALIDATION_MESSAGES.number,
                min: this.VALIDATION_MESSAGES.min
            }
        };
    }

});